determining negative slope from a graph